home *** CD-ROM | disk | FTP | other *** search
- *******************************************************************************
- * PROGRAM: Grf.prg
- *
- * WRITTEN BY: Borland Late Night Crew
- *
- * DATE: 5/93
- *
- * UPDATED: 7/93
- *
- * VERSION: Alpha α
- *
- * DESCRIPTION: This program displays a window containing six different types
- * of graph objects, each displaying the sales figures contained
- * in sixgraph.dbf.
- *
- * PARAMETERS: None
- *
- * CALLS: None
- *
- * USAGE: DO Grf
- *
- *******************************************************************************
- set talk off
- private savearea
- savearea = str(workarea())
-
- use sixgraph in select() && sales data
- select sixgraph
-
- define window big of application from 1,1 to 23,79;
- title "Graphs";
- sizeable;
- onclose Cleanup()
- define graph t1 of big from 1,1 to 9,25 filename bar.grf hatch
- define graph t2 of big from 1,27 to 9,51 filename pie.grf
- define graph t3 of big from 1,53 to 9,77 filename line.grf
- define graph t4 of big from 10,1 to 19,25 filename regr.grf
- define graph t5 of big from 10,27 to 19,51 filename scat.grf
- define graph t6 of big from 10,53 to 19,77 filename step.grf
-
- readmodal("Big")
- do Cleanup
-
- *******************************************************************************
- function Cleanup
- * Close the open database, and return to the previous workarea
- *******************************************************************************
-
- use
- select &savearea
- return .t.
-